package cn.edu.cimv.dao.mapper;

import cn.edu.cimv.dao.entity.Awards;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Repository
public interface AwardsMapper {
    //insert 获奖情况
    void insertAwards(@Param("awards") Awards awards);
    //update 获奖情况
    void updateAwards(@Param("awards") Awards awards);
    //delete 获奖情况
    void deleteAwards(@Param("id") int id);
    //查询获奖情况列表
    List<Awards> queryAwards();
    //根据ID查单条获奖情况
    Awards queryAwardsById(@Param("id") int id);
    //查询最新的获奖情况4条
    List<Awards> queryAwardsLast(@Param("awardsCount") int awardsCount);
}
